home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / gunlok.gsh < prev    next >
Text File  |  2000-09-09  |  2KB  |  107 lines

  1. // defines GunLok Robot
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. #ifndef INCLUDED_GUNLOK_GSH
  7. #define INCLUDED_GUNLOK_GSH
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "defaults.gsh"
  12.  
  13. hierarchy Hcy_GunLok
  14. {
  15.     file "units\gunlok mkii.RIF"
  16.     name "gunlok mkii"
  17.     hotspot "dum flash"
  18. }
  19.  
  20. hierarchy Hcy_GunLokShadow
  21. {
  22.     file "units\gunlok_shadow.RIF"
  23.     name "gunlok_shadow"
  24. }
  25.  
  26. hierarchy Hcy_GunLokCustomize
  27. {
  28.     file "units\wepgunlok.RIF"
  29.     name "wepgunlok"
  30. }
  31.  
  32. character Chr_GunLok : Chr_DefaultGoodie
  33. {
  34.     turning speed   1    // this is in revolutions per second
  35.     walking speed   1    // this is in animation cycles per second
  36.     strength        130    // initial strength points
  37.     aim             0    // how many degrees off target he can be at most
  38.     sight angle    75    // in degrees
  39.     sight range     12    // in metres (i've doubled this for a test)
  40.     hearing range    0    // in metres
  41.     gun yaw angle    175    // in degrees
  42.     damage multiplier    1.5
  43.     aggression        0.7    // from 0 to 1
  44.     radius            0.5    // used by the movement model
  45.     customization hierarchy Hcy_GunLokCustomize
  46.     shadow hierarchy    Hcy_GunLokShadow
  47.     description        gunlok description
  48.     status window u    0
  49.     status window v    674
  50.     vision cone        no
  51. }
  52.  
  53. role Rol_GunLok : Rol_DefaultRobot
  54. {
  55.     shape            Hcy_GunLok
  56.     character        Chr_GunLok
  57.     identifier        "GUNLOK"
  58.     armour            3
  59.     destructibility    Des_Explode
  60.     ai                bot
  61.     limit            1
  62. }
  63.  
  64. ///////////////////////////////////////////////////////////////
  65.  
  66. // Gunlok's energy weapon (for first person mode)
  67.  
  68. pgenerator Pgn_Gunlok_Energy_Weapon
  69. {
  70.     type explosion
  71.     life infinite // well actually until the shot no longer exists
  72.     particle TTL 0.8
  73.     rate 250
  74.     // stream direction
  75.     x 0 y 0 z 0
  76.     // particle colour
  77.     red 0.59 green 0.20 blue 0.96 alpha 0.5
  78.     // scale
  79.     start scale 1 end scale 0.1
  80.     spin 10000
  81. }
  82.  
  83. projectile Prj_Gunlok_Energy_Weapon
  84. {
  85.     gravity        no
  86.     damage        250
  87.     blast        10
  88.     max range    10000
  89. }
  90.  
  91. role Rol_Gunlok_Energy_Weapon : Rol_DefaultProjectile
  92. {
  93.     shape        Pgn_Gunlok_Energy_Weapon
  94.  
  95.     projectile    Prj_Gunlok_Energy_Weapon
  96.  
  97.     identifier    "gunlok_power"
  98.  
  99.     light        Lit_PurplePlasma
  100.  
  101.     limit     64  // homing(64)
  102. }
  103.     
  104. ////////////////////////////////////////////////////////////////////////////////////
  105.  
  106. // end wrapper - for preventing multiple or recursive inclusions
  107. #endif // !INCLUDED_GUNLOK_GSH